<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="mainMenu" />
<meta name="nav" content="0" />
<meta name="acc" content="3" />
<title>角色管理</title>
<script type="text/javascript">
	$(document).ready(function(){
		$("#addRole").click(function(){
			location.href="${ctx}/account/role!input.action";
		});
	});
</script>
</head>

<body>
	<form id="mainForm" action="role.action" method="get" class="yform">
		<div id="message">
			<s:actionmessage theme="custom" cssClass="success" />
			<s:actionerror theme="custom" cssClass="success" />
		</div>

		<div id="content">
			<table id="contentTable">
				<tr>
					<th>名称</th>
					<th>授权</th>
					<th>操作</th>
				</tr>

				<s:iterator value="page.result">
					<tr>
						<td>${roleName}</td>
						<td>${authNames}</td>
						<td>&nbsp;
							<a href="role!input.action?id=${id}" id="editLink-${name}">修改</a>&nbsp;
							<a href="role!delete.action?id=${id}" id="deleteLink-${name}">删除</a>
					</tr>
				</s:iterator>
			</table>
		</div>
<jsp:include page="/common/page.jsp" />
		<div class="type-button"><input id="addRole"
	 		type="button" class="add" value="新增" /> 
		</div>
	</form>
</body>
</html>
